home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
Amos
/
AMOSList-0497
/
AMOSLIST
/
000016_amos-request@svcs1.digex.net_Fri Apr 4 12:14:02 1997.msg
< prev
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
87 lines
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id MAA29553
for <mcox@access.digex.net>; Fri, 4 Apr 1997 12:14:02 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id JAA25486
for amos-out; Fri, 4 Apr 1997 09:31:11 -0500 (EST)
Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA25478
for <amos-list@svcs1.digex.net>; Fri, 4 Apr 1997 09:31:09 -0500 (EST)
Received: from relay-7.mail.demon.net (relay-7.mail.demon.net [194.217.242.9])
by mail1.access.digex.net (8.8.5/8.8.5) with SMTP id JAA08880
for <amos-list@access.digex.net>; Fri, 4 Apr 1997 09:31:07 -0500 (EST)
Received: from mirex.demon.co.uk ([158.152.68.125]) by relay-6.mail.demon.net
id ad0614384; 4 Apr 97 15:23 BST
Received: by mirex.demon.co.uk (V1.16/Amiga)
id AA006a7; Fri, 4 Apr 97 01:33:40 GMT
Date: Fri, 4 Apr 97 01:33:40 GMT
Message-Id: <9704040133.AA006a2@mirex.demon.co.uk>
Message-Id: <24381b71.u8t20e.d9cf2-Braneloc@mirex.demon.co.uk>
In-Reply-To: <199704031225.EAA08388@f9.hotmail.com>
(from "Jamie B" <jamieb5@hotmail.com>)
(at Thu, 03 Apr 1997 04:25:11 PST)
Organization: Mirex Software
Reply-To: Braneloc@mirex.demon.co.uk
Website: http://www.mirex.demon.co.uk
From: Keith Hill <Braneloc@mirex.demon.co.uk>
To: jamieb5@hotmail.com
Cc: amos-list@access.digex.net
Subject: Re: Just plain Subjects
Status: RO
X-Status:
To the one known as Jamie,
> Okay, I'm not going to brag on about anything... All I want to know
> is how to use normaly inputs and take "BITS" from it, and make it
> NON case sensative...
> So if I took say this:
> Eat the cow
> And the cow didn't exist, it should say:
> There is no cow to eat.
> I don't know ho to do that normally...
> Also: Case sensetive etc:
> I want this:
> HELLO
> To be the same as this:
> HeLlO
Case sensitive is the easy bit, use Upper$ to convert it to upper case for
manageability, then split them into different words. Now things get really
difficult. EAT & COW is fairly straight forward, but you need to take into
account all your objects that are edible, and all the command words you are
using, related to other command words and objects, so each thing relates to
another thing, so to EAT your COW, you would probably need a FORK or a
DEAD-COW.
There are two main ways of working out EAT the COW, one is extensive
programming on a per-location basis, and the other is with huge databases,
but to start you off, here is some code to split up your input.
dim split$(10):rem 10 words max.
line input a$ :rem nasty input.
a$=upper$(a$)
c=1
for n=1 to len(a$)
z$=mid$(a$,n,1)
if z$=" "
c=c+1
else
split$(c)=split$(c)+z$
end if
next
(end of code)
split$(1)="EAT"
split$(2)="THE"
split$(3)="COW"
..let me know if you need more help/code.
_ _ _ _ _ _ |
|_> |_| |_| |\ | |_ | | | / | | "Would you like a Jellybaby ?"
|_> | \ | | | \| |_ |_ |_| \_ . | - The Doctor
|
--------------+---------------
http://www.mirex.demon.co.uk